export default [{
  path: '/',
  redirect: '/index' //redirect重定向
}, {
  path: '/index',
  neme: 'index',
  meta: {
    title: '第一个页面'
  },
  component: () => import('@/views/index.vue'),
  children: [

  ],
  meta: {
    keepAlive: true // 需要被缓存
  }
},{
  path: '/login',
  neme: 'login',
  meta: {
    title: '登陆'
  },
  component: () => import('@/views/login/index.vue'),
}, {
  path: '/:pathMatch(.*)',
  redirect: '/index' //redirect重定向
}, ]